package com.example.homework_1;

public class Cake {
    private static final long serialVersion = 1L;
    private String id;
    private String name;
    private int price;
    public Cake(String id, String name,int price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getPrice() {
        return price;
    }
    public void setPrice(String price) {
        this.price = Integer.parseInt(price);
    }
}
